package com.mustafaiev.tair.autobase.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import com.mustafaiev.tair.autobase.race.Race;

public interface RacesDao {
	
	/**
	 * @param race
	 * @return int
	 * @throws SQLException
	 */
	int addRace(Race race) throws SQLException;

	/**
	 * @param race
	 * @return {@link ResultSet}
	 * @throws SQLException
	 */
	ResultSet getRace(Race race) throws SQLException;

	/**
	 * @return {@link ResultSet}
	 * @throws SQLException
	 */
	ResultSet getRaceList() throws SQLException;

	/**
	 * @param race
	 * @return int
	 * @throws SQLException
	 */
	int deleteRace(Race race) throws SQLException;

	/**
	 * @param race
	 * @return
	 * @throws SQLException
	 */
	int updateRaceInfo(Race race) throws SQLException;
	
}
